ci/build-check: Remove unused-command-line-argument diagnostic
authorRobert Fairley <rfairley@redhat.com>
Wed, 19 Jun 2019 20:04:39 +0000 (16:04 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 21 Jun 2019 13:17:10 +0000 (13:17 +0000)
Since `clang-4.0` is no longer being used, it should be safe to remove
use of this diagnostic for clang. This enables using `gcc` as a workaround
for `g-ir-scanner`, as `unused-command-line-argument` is not recognized by
`gcc`.

See: https://github.com/ostreedev/ostree/pull/1871#issuecomment-503765624

Closes: #1871
Approved by: jlebon

ci/build-check.sh

index ed129c74d160a80afd331f96b64bb6e1cabc3bc5..bd0686bd69c274649f187130c0977009a7341c67 100755 (executable)
@@ -25,8 +25,7 @@ if test -x /usr/bin/clang; then
     if grep -q -e 'static inline.*_GLIB_AUTOPTR_LIST_FUNC_NAME' /usr/include/glib-2.0/glib/gmacros.h; then
         echo 'Skipping clang check, see https://bugzilla.gnome.org/show_bug.cgi?id=796346'
     else
-    # Except for clang-4.0: error: argument unused during compilation: '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' [-Werror,-Wunused-command-line-argument]
-    export CFLAGS="-Wall -Werror -Wno-error=unused-command-line-argument ${CFLAGS:-}"
+    export CFLAGS="-Wall -Werror ${CFLAGS:-}"
     git clean -dfx && git submodule foreach git clean -dfx
     export CC=clang
     build